package com.community.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.community.common.pojo.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 页面菜单表 Mapper 接口
 * </p>
 *
 * @author superman
 * @since 2020-08-19
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> queryFirstMenu(Integer role);

    List<Menu> queryChildMenu(@Param("role") Integer roleId, @Param("id") Integer id);
}
